
;This is a copy of the script that rules the ECP option with all the features that are changed/anabled/disabled



;If the ECP is not present the script exit
? (format[{%1},ECP_path] == {scalar bool array string 0xfcffffef}) : exit

;This variable is set to true moments before the mission ends then the script is fired again
?NearEnd: goto "Restore"

;A variable is set to true to prevent custom non-ECP explosions scripts to run
ECPcomp=true

;Disable heli dust
ECP_local set [33, false ]
;Add addition weapon class for AT backblast effect
ECP_local set [57, (ECP_local select 57) + ["JAM_AT4Rocket"] ]
;Reduce the maximum number of bullets whiz sounds heard at any one instant by player to 1
ECP_local set [69, 1 ]
;Enable ECP explosions effects
ECP_local set [83, true ]
;Disable HALO scripts
ECP_local set [99, false ]
;Disable flies effect
ECP_local set [112, false ]
;Enable obstructive smoke shells
ECP_local set [130, true ];
;Enable aditional ECP explosions effects for vehicles
ECP_local set [141, true ]
;List of additional classes that weaponFX (smoke) is implemented for
ECP_local set [136, (ECP_local select 136) + ["ASZ_CSBNNassalto","ASZ_CSBNnight","ASZ_CSBNNgranate","ASZ_CSBNNappoggio","ASZ_PilotaMM"] ]
;Enable suppressing fire from AI on player
ECP_local set [196, true ]
;Disable altitude warning and vehicle radio chatter
ECP_local set [198, false ]


;Disable tail rotor failure
ECP_public set [5, false  ]
;Disable random weather and snow
ECP_public set [19, false ]
;Disable lighthouse scripts
ECP_public set [26, false ]
;Enable jamming system script
ECP_public set [29, true ]
;Disable the player to join "Man" type units to his/her squad
ECP_public set [33, false ]
;Disable the player to release "Man" type units from his/her squad
ECP_public set [36, false ]
;Disable team leader to give AI helo pilot orders
ECP_public set [50, false ]
;Disable West AI to fire flares at night upon enemy contact
ECP_public set [56, 0 ]
;Enable East AI to fire flares at night upon enemy contact
ECP_public set [57, 1 ]
;Enable Resistance AI to fire flares at night upon enemy contact
ECP_public set [58, 1 ]
exit

;Below some of the settings changed above are reverted
;I've decided to restore only the settings that were disabled or changed from the default ECP values
#Restore
;Enable heli dust
ECP_local set [33, true ]
;Increase the maximum number of bullets whiz sounds heard at any one instant by player to 3
ECP_local set [69, 3 ]
;Enable HALO scripts
ECP_local set [99, true ]
;Enable flies effect
ECP_local set [112, true ]
;Enable altitude warning and vehicle radio chatter
ECP_local set [198, true ]

;Enable tail rotor failure
ECP_public set [5, true  ]
;Enable random weather and snow
ECP_public set [19, true ]
;Enable lighthouse scripts
ECP_public set [26, true ]
;Enable the player to join "Man" type units to his/her squad
ECP_public set [33, true ]
;Enable the player to release "Man" type units from his/her squad
ECP_public set [36, true ]
;Enable team leader to give AI helo pilot orders
ECP_public set [50, true ]
;Enable West AI to fire flares at night upon enemy contact
ECP_public set [56, 1 ]
exit
